<template>
  <div>
    <el-link v-if="showVisible" type="primary" @click="$router.push({ path: '/exam/question/topic/' + row.id + '/paper/list' })">{{ row.num }}</el-link>
    <el-link v-else type="primary" :underline="false">{{ row.num }}</el-link>
  </div>
</template>

<script>
export default {
  props: {
    row: {
      type: Object,
      default: _ => {
        return {};
      }
    }
  },
  computed: {
    showVisible() {
      // return this.hasPermission('exam');
      return true;
    }
  }
};
</script>
